﻿export default [
  {
    path: '/user',
    // layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/accountsettings',
    // layout: false,
    routes: [
      {
        path: '/accountsettings',
        routes: [
          {
            name: '个人设置',
            path: '/accountsettings',
            component: './AccountSettings',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/welcome',
    name: '首页',
    // icon: 'smile',
    component: './Welcome',
  },
  {
    name: '招聘职位',
    path: '/post',
    component: './Post',
  },
  // {
  //   name: '学校概况',
  //   path: '/school',
  //   component: './School',
  // },
  {
    name: '校园生活',
    path: '/school',
    component: './School',
  },
  // {
  //   name: '聘用公示',
  //   path: '/school',
  //   component: './School',
  // },
  {
    path: '/post/detail',
    routes: [
      {
        path: '/post/detail',
        routes: [
          {
            name: '岗位详情',
            path: '/post/detail',
            component: './PostDetail',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: './404',
  },
];
